<?php

namespace App\Repositories;

use App\Models\Identification;
use InfyOm\Generator\Common\BaseRepository;

/**
 * Class IdentificationRepository
 * @package App\Repositories
 * @version April 3, 2018, 1:54 am UTC
 *
 * @method Identification findWithoutFail($id, $columns = ['*'])
 * @method Identification find($id, $columns = ['*'])
 * @method Identification first($columns = ['*'])
*/
class IdentificationRepository extends BaseRepository
{
    /**
     * @var array
     */
    protected $fieldSearchable = [
        'name',
        'phone',
        'identity_card',
        'bank_card',
        'validity2_res',
        'validity4_res',
        'user_id',
        'validity'
    ];

    /**
     * Configure the Model
     **/
    public function model()
    {
        return Identification::class;
    }
}
